<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>SemOpt: src/Preferred.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">SemOpt
   &#160;<span id="projectnumber">0.2alpha5-SCC</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('Preferred_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">src/Preferred.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>use this class to compute PrefSAT  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;Labelling.h&quot;</code><br/>
<code>#include &quot;SetArguments.h&quot;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &quot;AF.h&quot;</code><br/>
<code>#include &quot;SATFormulae.h&quot;</code><br/>
<code>#include &quot;SetArgumentsVector.h&quot;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;sstream&gt;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for Preferred.h:</div>
<div class="dyncontent">
<div class="center"><img src="Preferred_8h__incl.png" border="0" usemap="#src_2Preferred_8h" alt=""/></div>
<map name="src_2Preferred_8h" id="src_2Preferred_8h">
<area shape="rect" id="node3" href="Labelling_8h_source.html" title="Labelling.h" alt="" coords="800,160,883,189"/><area shape="rect" id="node14" href="AF_8h_source.html" title="AF.h" alt="" coords="629,315,680,344"/><area shape="rect" id="node20" href="SetArguments_8h_source.html" title="SetArguments.h" alt="" coords="696,392,811,421"/><area shape="rect" id="node41" href="SATFormulae_8h_source.html" title="SATFormulae.h" alt="" coords="291,83,403,112"/><area shape="rect" id="node56" href="SetArgumentsVector_8h_source.html" title="SetArgumentsVector.h" alt="" coords="800,83,955,112"/><area shape="rect" id="node9" href="Argument_8h_source.html" title="Argument.h" alt="" coords="536,237,624,267"/><area shape="rect" id="node48" href="OrClause_8h_source.html" title="OrClause.h" alt="" coords="211,160,299,189"/></map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="Preferred_8h__dep__incl.png" border="0" usemap="#src_2Preferred_8hdep" alt=""/></div>
<map name="src_2Preferred_8hdep" id="src_2Preferred_8hdep">
<area shape="rect" id="node3" href="semopt_8h.html" title="src/semopt.h" alt="" coords="163,83,261,112"/><area shape="rect" id="node5" href="PrefAlgorithm_8h_source.html" title="src/PrefAlgorithm.h" alt="" coords="59,160,192,189"/><area shape="rect" id="node14" href="Preferred_8cpp_source.html" title="src/Preferred.cpp" alt="" coords="285,83,408,112"/><area shape="rect" id="node11" href="misc_8cpp.html" title="Miscellanea functions." alt="" coords="216,160,312,189"/><area shape="rect" id="node7" href="main_8cpp_source.html" title="src/main.cpp" alt="" coords="5,237,101,267"/><area shape="rect" id="node9" href="PrefAlgorithm_8cpp_source.html" title="src/PrefAlgorithm.cpp" alt="" coords="125,237,272,267"/></map>
</div>
</div>
<p><a href="Preferred_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="Preferred_8h.html#aa20dbcd7a3fec439ee99c7473411aad9">operator&lt;&lt;</a> (ostream &amp;, const Preferred &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">prints out only the part of the solution interesting for the PrefAlgorithm class.  <a href="#aa20dbcd7a3fec439ee99c7473411aad9"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>use this class to compute PrefSAT </p>
<p>This class offers you an implementation of prefSAT algorithm. To use this class effectively you can code like this: </p>
<div class="fragment"><pre class="fragment">        Preferred pref=<span class="keyword">new</span> Preferred();
        <span class="comment">//compute solution</span>
        pref-&gt;prefSAT(&amp;someSet,&amp;someSet);
        <span class="comment">//print solutions</span>
        <span class="keywordflow">for</span> (<span class="keyword">auto</span> it=pref-&gt;begin();it!=pref-&gt;end();it++){
                cout &lt;&lt; <span class="stringliteral">&quot;subset: &quot;</span> &lt;&lt; *it &lt;&lt; endl;
        }
        <span class="comment">//clean temporary variables to allows instance reuse</span>
        pref-&gt;cleanlabs();
</pre></div><p>Created on: 10 Jun 2013 Author: geryo </p>

<p>Definition in file <a class="el" href="Preferred_8h_source.html">Preferred.h</a>.</p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="aa20dbcd7a3fec439ee99c7473411aad9"></a><!-- doxytag: member="Preferred.h::operator&lt;&lt;" ref="aa20dbcd7a3fec439ee99c7473411aad9" args="(ostream &amp;, const Preferred &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">ostream &amp;&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Preferred &amp;&#160;</td>
          <td class="paramname"><em>pref</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>prints out only the part of the solution interesting for the PrefAlgorithm class. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>the stream to change </td></tr>
    <tr><td class="paramname">pref</td><td>the Preferred structure holding the <b>whole</b> solution of prefSAT() algorithm </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the stream changed </dd></dl>

<p>Definition at line <a class="el" href="Preferred_8cpp_source.html#l00488">488</a> of file <a class="el" href="Preferred_8cpp_source.html">Preferred.cpp</a>.</p>

</div>
</div>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="Preferred_8h.html">Preferred.h</a>      </li>

    <li class="footer">Generated on Fri Jan 17 2014 11:47:52 for SemOpt by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
